<extend name="Layout/application"/>

<block name="content">
    <div class="row">
        <div class="col-md-12">

            <div class="row">
                <div class="col-md-8">
                    <div class="page-header">
                        <h1>内容管理</h1>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-10">
                    <div class="panel panel-default">
                        <div class="panel-heading">栏目管理</div>

                        <div class="panel-body">
                            <ul class="nav nav-tabs" role="tablist">
                                <li role="presentation" class="active"><a href="#home" role="tab" data-toggle="tab">栏目信息</a></li>
                                <li role="presentation"><a href="#profile" role="tab" data-toggle="tab">栏目内容</a></li>
                            </ul>
                            <form class="form-horizontal" role="form" method="post" action="{{:U('store')}}">
                            <div class="tab-content">
                                <div role="tabpanel" class="tab-pane active" id="home">
                                        <div class="form-group">
                                            <label for="parent" class="col-sm-2 control-label">父栏目</label>
                                            <div class="col-sm-10">
                                                <input type="text" list="url_list" name="text" id="parent" class="form-control"/>
                                                <datalist id="url_list">
                                                    <volist name="categories" id="category">
                                                        <option label="" value="{{$category.name}}"/>
                                                        <volist name="category.children" id="c">
                                                            <option label="" value="{{$c.name}}"/>
                                                        </volist>
                                                    </volist>
                                                </datalist>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="name" class="col-sm-2 control-label">栏目</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" name="name" id="name" placeholder="请输入栏目">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="pinyin" class="col-sm-2 control-label">pinyin</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" name="pinyin" id="pinyin" placeholder="请输入拼音">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="type" class="col-sm-2 control-label">类别</label>
                                            <div class="col-sm-10">
                                                <div class="radio">
                                                    <label>
                                                        <input type="radio" name="type" id="type" value="1" checked>
                                                        列表
                                                    </label>
                                                </div>
                                                <div class="radio">
                                                    <label>
                                                        <input type="radio" name="type" id="type1" value="2">
                                                        封面
                                                    </label>
                                                </div>
                                                <div class="radio">
                                                    <label>
                                                        <input type="radio" name="type" id="type2" value="3">
                                                        url地址
                                                    </label>
                                                </div>

                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="url" class="col-sm-2 control-label">URL跳转地址</label>
                                            <div class="col-sm-10">
                                                <input type="text" class="form-control" name="url" id="url" placeholder="请输入URL">
                                            </div>
                                        </div>

                                </div>
                                <div role="tabpanel" class="tab-pane" id="profile">
                                    <textarea name="content" >

                                    </textarea>
                                </div>
                                <div class="form-group">
                                    <label for="is_show" class="col-sm-2 control-label">是否显示</label>
                                    <div class="col-sm-10">
                                        <div class="radio">
                                            <label>
                                                <input type="radio" name="is_show" id="is_show" value="1" checked>
                                                是
                                            </label>
                                        </div>
                                        <div class="radio">
                                            <label>
                                                <input type="radio" name="is_show" id="is_show1" value="0">
                                                否
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <button type="button" class="btn btn-default">取消</button>
                                        <button type="submit" class="btn btn-default">保存</button>
                                    </div>
                                </div>
                            </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <block name="js">

        <script src="__PUBLIC__/ckeditor/ckeditor.js"></script>
        <script>
            CKEDITOR.replace('content');
        </script>
    </block>

</block>